package pro.shushi.pamirs.hr.core.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;


@Mapper
public interface EmployeeMapper {

    @Select("<script>select COUNT(*) as departmentQuantity, department_code as Code from ${table} group by department_code</script>")
    List<Map<String, Object>> groupByepartmentCode(@Param("table") String table);

}